SureCart\Support\Blocks\TemplateUtilityService A

Total Complexity 67
Dependencies 6
Dependents 2
Total lines 491
Lines of code 259
Logical lines of code 129
Comment lines 178
Methods 19
Properties 3

Methods 19

Method Rating Maintainability Complexity Lines of code
buildTemplateResultsFromPost()
A
46 8 38
__construct()
A
45 7 45
buildTemplateResultFromFile()
A
49 8 26
injectThemeAttributeInContent()
S
54 6 22
flattenBlocks()
S
56 5 20
getThemeTemplatePath()
S
58 4 15
createNewBlockTemplateObject()
S
58 4 14
getTemplatePaths()
S
62 3 11
removeThemeTemplatesWithCustomAlternative()
S
55 2 23
isBlockAvailableInSiteEditor()
S
70 3 6
isFSETheme()
S
66 3 9
supportsBlockTemplates()
S
77 3 3
getBlockTemplateDescription()
S
71 2 6
getTemplatesDirectory()
S
79 2 3
getBlockTemplateTitle()
S
70 2 6
templateHasTitle()
S
78 2 3
themeHasTemplatePart()
S
79 1 3
themeHasTemplate()
S
79 1 3
generateTemplateSlugFromPath()
S
79 1 3